package cn.kdlc.demo.bind.adapter;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import cn.kdlc.demo.bind.databinding.ItemBinding;
import cn.kdlc.demo.bind.model.User;

/**
 * Created by android on 2015/11/24 0024.
 */
public class UserHolder extends RecyclerView.ViewHolder{

    private ItemBinding binding;

    public UserHolder(View itemView) {
        super(itemView);
        binding = ItemBinding.bind(itemView);
    }

    public void bind(@NonNull User user){
        binding.setUser(user);
    }
}
